package alipay.openplatform.edu.campus.jiuye.service.services.business;

import alipay.openplatform.edu.campus.jiuye.common.utils.CopyVoPo;
import alipay.openplatform.edu.campus.jiuye.dao.mappers.business.BllTopicUserMapper;
import alipay.openplatform.edu.campus.jiuye.model.po.BllTopicUserPO;
import alipay.openplatform.edu.campus.jiuye.model.vo.BllTopicUserVO;
import alipay.openplatform.edu.campus.jiuye.service.iservice.business.IBllTopicUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zong on 16/10/20.
 */

@Service
public class BllTopicUserService implements IBllTopicUserService{

    @Autowired
    private BllTopicUserMapper bllTopicUserMapper;


    /**
     * 添加当前扫描二维码的用户的相关信息
     *
     * @bllTopicUserVO  信息实体
     * @return 影响行数
     */
    public int addBllTopicUser(BllTopicUserVO bllTopicUserVO)throws Exception{

        BllTopicUserPO po = new BllTopicUserPO();
        CopyVoPo.beanUtilsBean.copyProperties(po,bllTopicUserVO);
        int count = bllTopicUserMapper.insert(po);
        return count;
    }

}
